Method: ActiveSupport::Messages::SerializerWithFallback.[]
- Defined in:
- lib/active_support/messages/serializer_with_fallback.rb
.[](format) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/active_support/messages/serializer_with_fallback.rb', line 9 def self.[](format) if format.to_s.include?("message_pack") && !defined?(ActiveSupport::MessagePack) require "active_support/message_pack" end SERIALIZERS.fetch(format) end |